package com.xxl.job.executor.jobhandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import com.xxl.job.executor.service.IMonitorInfoStatisGrantryService;

/**
 * 与千方对账门架数据同步功能
 * @author Administrator
 *
 */
@JobHandler(value="MonitorInfoStatisGrantryHandle")
@Component
public class MonitorInfoStatisGrantryHandle extends IJobHandler {

	@Autowired
    private IMonitorInfoStatisGrantryService monitorInfoStatisGrantryService;
	
	@Override
	public ReturnT<String> execute(String param) throws Exception {
		  XxlJobLogger.log("开始执行数据同步任务");

		  monitorInfoStatisGrantryService.transfer();

	        XxlJobLogger.log("执行数据同步任务结束");
	        return SUCCESS;
	}

}
